#include "air001_iwdg.h"
IWDG_HandleTypeDef IWDG_WL;
void air001_iwdg_init(void)
{
	__HAL_RCC_LSI_ENABLE();
	IWDG_WL.Instance=IWDG;
	IWDG_WL.Init.Prescaler=IWDG_PRESCALER_32;
	IWDG_WL.Init.Reload=(900);
	printf("IWDG init%d\r\n",HAL_IWDG_Init(&IWDG_WL));
	
}

void air001_WG(void)
{
	HAL_IWDG_Refresh(&IWDG_WL);
	printf("IWDG running\r\n");
}